<template>
    <a-card :bordered="false">
         <component :is="currentPage" @changePage="changePage" :componentParam="componentParam"/>
    </a-card>
</template>

<script>

import {SysMixin} from '@/mixins/SysMixin'
import test2 from './test2'
import test3 from './test3'

export default {
    name:'test',
    components:{
       test2,test3
    },
    mixins:[SysMixin],
    data(){
        return{
            currentPage:'test2',
            componentParam: {} // 页面间传递的数据
        }
    },
    created(){
       
    },
    methods:{
        changePage({ name, componentParam }) {
            this.currentPage = name
            this.componentParam = componentParam
            // this.pageProps = props || {}
        }
    }
}
</script>